import axios from "axios";

const imgApi = {
    upImg(e) {
        const files = e.target.files;
        console.log(files);
        const fd = new FormData();
        fd.append("file", files[0]);
        return axios.post("/images/uploadImages", fd)
    }
}

export default imgApi